import {getRequest,postRequest,putRequest,deleteRequest} from './request.js'


// export const personList = data => getRequest(`/wechat/person/list`, data);

export const wxLogin = data => getRequest(`/wechat/wx/login`, data);

export const queryGoodMenuList = data => getRequest(`/wechat/good/goodmenulist`, data);

export const queryGoodsList = data => getRequest(`/wechat/good/goods`, data);

// export const insertXunfang = data => postRequest(`/bmjt/yyjlService/insertXunfang`, data);

export const insertXunfang = data => postRequest(`/bmjt/yyjlService/insertXunfang`, data);

export const personAdd = data => postRequest(`/wechat/person`, data);

export const personUpdate = data => putRequest(`/wechat/person`, data);

export const personDelete = data => deleteRequest(`/wechat/person/${data}`);

export const personList = data => getRequest(`/wechat/person/list`, data);

export const personInfo = data => getRequest(`/wechat/person/${data}`);


export const addressAdd = data => postRequest(`/wechat/address`, data);

export const addressUpdate = data => putRequest(`/wechat/address`, data);

export const addressDelete = data => deleteRequest(`/wechat/address/${data}`);

export const addressList = data => getRequest(`/wechat/address/list`, data);

export const addressInfo = data => getRequest(`/wechat/address/${data}`);

export const defaultAddressInfo = data => getRequest(`/wechat/address/default-address`,data);



export const getDiscount = data => postRequest(`/wechat/canteen/discount`, data);

export const getTableWare = data => getRequest(`/wechat/canteen/tableware`, data);

export const getDeliveryFee = data => getRequest(`/wechat/canteen/fee`, data);

export const getPackFee = data => getRequest(`/wechat/canteen/pack-fee`, data);


export const orderAdd = data => postRequest(`/wechat/order`, data);

export const orderUpdate = data => putRequest(`/wechat/order`, data);

export const orderDelete = data => deleteRequest(`/wechat/order/${data}`);

export const orderList = data => getRequest(`/wechat/order/list`, data);

export const orderInfo = data => getRequest(`/wechat/order/${data}`);





export const pauseOrder  = data => postRequest(`/wechat/orderchild/pause-order`, data);

export const staffCheck  = data => getRequest(`/wechat/canteen/staff-check`, data);

export const todayOrder  = data => getRequest(`/wechat/orderchild/today-order`, data);

export const orderListSearch  = data => getRequest(`/wechat/order/order-list`, data);

export const orderReport = data => getRequest(`/wechat/order/order-report`, data);

export const orderDetail = data => getRequest(`/wechat/orderchild/order-detail`, data);

export const myReport = data => getRequest(`/wechat/order/my-report`, data);

export const todayOrderReport = data => getRequest(`/wechat/orderchild/today-order-report`, data);

export const orderChildReport = data => getRequest(`/wechat/orderchild/order-child-report`, data);

export const leaderOrderList = data => getRequest(`/wechat/order/leader-order-list`, data);

export const staffOrderList = data => getRequest(`/wechat/orderchild/staff-order-list`, data);

export const sonOrderDetail = data => getRequest(`/wechat/orderchild/order-detail`, data);

export const paysend = data => postRequest(`/wechat/wx/paysend`, data);

export const everyDayNew = data => getRequest(`/wechat/good/every-day-new`, data);

export const goodsDetail = data => getRequest(`/wechat/good/${data} `);

export const canteenDish = data => getRequest(`/wechat/canteen/dish`,data);

export const todayMenu = data => getRequest(`/wechat/canteen/today-menu`,data);

export const childOrderOver = data => postRequest(`/wechat/orderchild/child-order-over`,data);

export const staffOrderDetail = data => getRequest(`/wechat/orderchild/staff-order-detail`,data);

export const canttenPhone = data => getRequest(`/wechat/canteen/cantten-phone`,data);

export const childOrderOverByCode = data => postRequest(`/wechat/orderchild/child-order-over-by-code`,data);


export const listAddress = data => getRequest(`/wechat/address/list-address`,data);

export const canttenId = data => getRequest(`/wechat/canteen/cantten-id`,data);

export const sendPic = data => postRequest(`/wechat/orderchild/send-pic`,data);





































































































































 































